Skip to content

Fix prev/next navigation on section landing pages#85

Merged
ronaldtse merged 1 commit intomainfrom
fix/prev-next-section-landing-pages
May 6, 2026
Merged

Fix prev/next navigation on section landing pages#85
ronaldtse merged 1 commit intomainfrom
fix/prev-next-section-landing-pages

Conversation

@ronaldtse
Copy link
Copy Markdown
Contributor

Section landing pages (with parent: '/') were showing prev/next links to unrelated sibling sections. For example, /about/ showed "Publishing Events" as previous and "Calendar Spam" as next.

Wraps the prev/next block in {% unless page.parent == '/' %} to skip it on top-level section indices, which are not sequential reading content.

Section landing pages (parent: '/') are not sequential content,
but prev/next treated all top-level pages as siblings. This caused
/about/ to show Publishing Events and Calendar Spam as neighbors.

Skip prev/next for pages with parent='/'.
@ronaldtse ronaldtse merged commit 7bfa669 into main May 6, 2026
3 checks passed
@ronaldtse ronaldtse deleted the fix/prev-next-section-landing-pages branch May 6, 2026 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant